package com.itany.book.book.service.impl;

import com.itany.book.book.dao.BookTypeDao;
import com.itany.book.book.service.BookTypeService;
import com.itany.book.pojo.BookType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 描述:
 * 日期:2020年01月04日 上午11:05
 * 作者:soft01
 * 版本:1.0
 */

@Service
@com.alibaba.dubbo.config.annotation.Service
public class BookTypeServiceImpl implements BookTypeService {

    @Autowired
    private BookTypeDao bookTypeDao;

    @Override
    public List<BookType> findAll() {
        List<BookType> bookTypes = bookTypeDao.selectAll();
        return bookTypes;
    }

    @Override
    public List<BookType> findOne() {
        List<BookType> bookType = bookTypeDao.selectOne();
        return bookType;
    }
}
